package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标准答案对象 exam_answer
 * 
 * @author tyro
 * @date 2025-05-21
 */
public class ExamAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 答案ID */
    private Long id;

    /** 题目ID */
    @Excel(name = "题目ID")
    private Long questionId;

    /** 标准答案内容 */
    @Excel(name = "标准答案内容")
    private String answerContent;

    /** 填空题空格序号（填空题专用） */
    @Excel(name = "填空题空格序号", readConverterExp = "填=空题专用")
    private Long blankNumber;

    /** 填空题该空分值（填空题专用） */
    @Excel(name = "填空题该空分值", readConverterExp = "填=空题专用")
    private BigDecimal blankScore;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setAnswerContent(String answerContent) 
    {
        this.answerContent = answerContent;
    }

    public String getAnswerContent() 
    {
        return answerContent;
    }
    public void setBlankNumber(Long blankNumber) 
    {
        this.blankNumber = blankNumber;
    }

    public Long getBlankNumber() 
    {
        return blankNumber;
    }
    public void setBlankScore(BigDecimal blankScore) 
    {
        this.blankScore = blankScore;
    }

    public BigDecimal getBlankScore() 
    {
        return blankScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionId", getQuestionId())
            .append("answerContent", getAnswerContent())
            .append("blankNumber", getBlankNumber())
            .append("blankScore", getBlankScore())
            .toString();
    }
}
